package com.erp.user.request;

import com.erp.common.request.BaseRequest;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Set;

/**
 * @author shensong
 * @program machining_system.v1.0.0
 * @description 
 * @date 2022/12/21 16:49:24
 */
@Data
public class UsersUpdateReq extends BaseRequest {

    private static final long serialVersionUID = 1L;

    /**
     * 用户表 用户ID
     */
    @NotNull(message = "uid not null")
    private Long uid;
    /**
     * 用户名
     */
    @NotBlank(message = "username not blank")
    private String username;
    /**
     * 密码
     */
    @NotBlank(message = "password not blank")
    private String password;
    /**
     * token
     */
    @NotBlank(message = "token not blank")
    private String token;
    /**
     * 工号
     */
    @NotBlank(message = "jobNum not blank")
    private String jobNum;
    /**
     * 真实姓名
     */
    @NotBlank(message = "name not blank")
    private String name;
    /**
     * 用户头像
     */
    @NotBlank(message = "salt not blank")
    private String salt;
    /**
     * 手机号
     */
    @NotBlank(message = "mobile not blank")
    private String mobile;
    /**
     * 状态 0禁用 1启用
     */
    @NotNull(message = "isEnabled not null")
    private Integer isEnabled;
    /**
     * 乐观锁
     */
    private Integer revision;
    /**
     * 角色表 角色ID
     */
    @NotNull(message = "roleIds not null")
    private Set<Long> roleIds;

}
